package com.micro.modual.entity;

import javax.persistence.Id;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * <h1>商品评论表表 micro_goods_comment</h1>
 *
 * @author levelcoder
 * @date 2020-08-04 00:11:10
 */
@ApiModel(description = "商品评论表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "micro_goods_comment")
public class GoodsComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @ApiModelProperty(value = "主键编号")
    private Long id;


    /**
     * 评论内容
     */
    @ApiModelProperty(value = "评论内容")
    private String commentContent;


    /**
     * 用户编号
     */
    @ApiModelProperty(value = "用户编号")
    private String userCode;


    /**
     * 是否包含图片 1.是 2.否
     */
    @ApiModelProperty(value = "是否包含图片 1.是 2.否")
    private Byte hasPicture;


    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址")
    private String picUrls;


    /**
     * 评分
     */
    @ApiModelProperty(value = "评分")
    private Integer commentScore;


    /**
     * 评论类型 1.商品
     */
    @ApiModelProperty(value = "评论类型 1.商品")
    private Byte commentType;


    /**
     * 评论时间
     */
    @ApiModelProperty(value = "评论时间")
    private Date createTime;


    /**
     * 回复时间
     */
    @ApiModelProperty(value = "回复时间")
    private Date replyTime;


    /**
     * 回复内容
     */
    @ApiModelProperty(value = "回复内容")
    private String merchantReply;

}
